<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%
	String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort()
			+ request.getContextPath() + "/";
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<base href="<%=basePath%>">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="expires" content="0">
<title>Insert title here</title>
</head>
<body>
	<%!int age = 10;
	String name = "JAR";%>
	<%
		request.setCharacterEncoding("utf-8");
	%>
	字符编码： <%=request.getCharacterEncoding()%><br> 
	<%=request.getParameter("username")%><br>
	<%=request.getParameter("password")%><br>
	<%=request.getAttribute("age")%><br>
	可用参数名枚举：<%=request.getAttributeNames()%><br>
	服务器接受请求端口：<%=request.getProtocol()%><br>
	请求计划名：<%=request.getScheme() %><br>
	请求客户端地址：<%=request.getRemoteAddr() %><br>
	客户端主机名：<%=request.getRemoteHost()%><br>
	请求的客户端端口：<%=request.getRemotePort()%><br>
    解码过的请求体 ：<%=request.getReader()%><br>
    请求体的MIME类型：<%=request.getContentType() %><br>
</body>
</html>